import request from '@/utils/request'

// 查询考试或测验详情列表
export function listExam_detail(query) {
  return request({
    url: '/exam/exam_detail/list',
    method: 'get',
    params: query
  })
}

// 查询考试或测验详情详细
export function getExam_detail(id) {
  return request({
    url: '/exam/exam_detail/' + id,
    method: 'get'
  })
}

// 新增考试或测验详情
export function addExam_detail(data) {
  return request({
    url: '/exam/exam_detail',
    method: 'post',
    data: data
  })
}

// 修改考试或测验详情
export function updateExam_detail(data) {
  return request({
    url: '/exam/exam_detail',
    method: 'put',
    data: data
  })
}

// 删除考试或测验详情
export function delExam_detail(id) {
  return request({
    url: '/exam/exam_detail/' + id,
    method: 'delete'
  })
}
